<template>
  <input
    v-if="firstName"
    type="text"
    :value="firstName"
    @input="$emit('update:firstName', $event.target.value)">

  <input
    v-if="lastName"
    type="text"
    :value="lastName"
    @input="$emit('update:lastName', $event.target.value)">
</template>

<script>
  export default {
    name: "my-inputs",
    emits: ['update:firstName', 'update:lastName'],
    props: {
      firstName: String,
      lastName: String
    }
  }
</script>

<style scoped>
  input {
    width: 100%;
    height: 30px;
  }
</style>
